<template>
  <div id="app">
    <transition name="move" mode="out-in">
      <router-view />
    </transition>

    <NavBar />
  </div>
</template>
<script>
  export default {
    name: 'app'
  }
</script>
<script setup>
  import NavBar from './components/NavBar.vue'
  import {
    useRoute
  } from 'vue-router';
  const route = useRoute();
  console.log(route.path.value);
</script>

<style lang="less">
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }

  nav {
    padding: 30px;

    a {
      font-weight: bold;
      color: #2c3e50;

      &.router-link-exact-active {
        color: #42b983;
      }
    }
  }

  .move-enter-active {
    animation: qqq 0.3s;
  }

  .move-leave-active {
    animation: qqq 0.3s reverse;
  }

  @keyframes qqq {
    0% {
      transform: translateX(100%);
    }

    100% {
      transform: translateX(0%);
    }
  }
</style>